package spring.board.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import spring.board.dao.FriendDao;

public class FriendlistServiceImp implements FriendlistService{
	
	private FriendDao friendDao;
	

	public FriendDao getFriendDao() {
		return friendDao;
	}

	public void setFriendDao(FriendDao friendDao) {
		this.friendDao = friendDao;
	}

	@Override
	public List friendlist(String username) {
		// TODO Auto-generated method stub
		return friendDao.friendlist(username);
	}

	@Override
	public List profilelist(String username) {
		// TODO Auto-generated method stub
		return friendDao.profilelist(username);
	}

	@Override
	public void friendAdd(String username,String friend) {
		friendDao.friendAdd(username, friend);
		
	}

	@Override
	public void friendDelete(String username, String friend) {
		// TODO Auto-generated method stub
		friendDao.friendDelete(username, friend);
		
	}
	
	
	
	

}
